/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package be.djdb.shop;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.UniqueConstraint;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;


/**
* @author Lieven Roegiers
* @copyright 2013
* @from MY_SHOP
*/
@Entity
@NamedQueries({
    @NamedQuery(name="Phone.findAll",query="SELECT p FROM Phone p"),
    @NamedQuery(name="Phone.findByNr",query="SELECT p FROM Phone p WHERE p.nr = :nr"),
    @NamedQuery(name="Phone.findById",query="SELECT p FROM Phone p WHERE p.id = :id"),
})
public class Phone implements Serializable{
    @Id
    private int Id;
    public int getId() {
        return Id;
    }
    private String nr;
    private String type;
    public String getNr(){
        return nr;
    }
    public void setNr(String nr){
        this.nr = nr;
    }
    public String getType(){
        return type;
    }
    public void setType(String type){
        this.type = type;
    }
}
